package com.chacnt.singleton;

public class Singleton {
	private static Singleton singleton = null;
	private Singleton(){
		
	}
	
	public static synchronized Singleton getInstance(){
		if(singleton==null){
			singleton = new Singleton();
		}
		return singleton;
	}
	
	public Object readResolve(){
		return singleton;
	}
}
